﻿/*
 * (c) 2008 MOSA - The Managed Operating System Alliance
 *
 * Licensed under the terms of the New BSD License.
 *
 * Authors:
 *  Michael Ruck (grover) <sharpos@michaelruck.de>
 */

using System;
using iPear.Compiler.TypeSystem;

namespace iPear.Compiler.Framework.Operands
{
	/// <summary>
	/// 
	/// </summary>
	public class StaticFieldOperand : MemoryOperand
	{
		#region Data members

		#endregion // Data members

		#region Construction

		/// <summary>
		/// Initializes a new instance of the <see cref="StaticFieldOperand"/> class.
		/// </summary>
		/// <param name="field">The field.</param>
		public StaticFieldOperand(RuntimeField field, IntPtr offset) :
			base(field.SignatureType, null, offset) /* field.Address */
		{
		}

		#endregion // Construction

		#region MemoryOperand Overrides

		/// <summary>
		/// Returns a string representation of <see cref="Operand"/>.
		/// </summary>
		/// <returns>A string representation of the operand.</returns>
		public override string ToString()
		{
			return base.ToString();
		}

		#endregion // MemoryOperand Overrides
	}
}


